var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var DebugManager = require("AA_DebugManager");
var UIView = require("AA_UIView");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;
var _menu = _decorator.menu;
var p = {
  UIRoot: 999,
  UIBlock: 1e3,
  UILoading: 1001,
  UITips: 1002
};
var _def_UIScene = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t._name = "scene_root";
    t._scene = true;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onLoad = function () {
    for (var e in p) {
      var t = this.node.getChildByName(e);
      if (!t) {
        var o = p[e];
        (t = new cc.Node(e)).setContentSize(cc.winSize);
        t.zIndex = o;
        this.node.addChild(t);
      }
    }
    this.init();
  };
  _creator.prototype.init = function () {
    var t = cc.director.getScene();
    var o = cc.assetManager.bundles.find(function (e) {
      return !!e.getSceneInfo(t.name);
    });
    var n = null == o ? undefined : o.name;
    DebugManager.DebugMgr.clean();
    e.prototype.init.call(this, n, this._name, null);
  };
  return __decorate([_ccclass, _menu("view/UIScene")], _creator);
}(UIView.default);
exports.default = _def_UIScene;